package group2assignone.ucm.administrator;

import group2assignone.model.Manager;
import group2assignone.ucm.UCController;
import group2assignone.view.administrator.AddNewManagerView;
import group2assignone.view.administrator.AdminMainView;

/**
 *public class UCUIAddManager implements UCController
 * this is the class for the use case add manager view
 * it recieves the admin main view as a paramater and opens a view
 * with the manager details displayed and editable
 * @author group2
 */
public class UCUIAddManager implements UCController {

    private AdminMainView view;

    /**
     *This constructor recieves the main adminView as a paramater
     * this is to enable data transfer between to interfaces and UC's
     * @param m_View
     */
    public UCUIAddManager(AdminMainView m_View) {
        view = m_View;
    }

     /**
     * Use Case: Add Manager
     * Pre-Condition: MainView UI
     * Post-Condition: UI is updated
     * 1. System changes user interfaces from Main Administrator interface to add new manager interface
     */



    public void run() {
        view.dispose();
        AddNewManagerView mView = new AddNewManagerView();
        mView.go();
    }
}
   





